<%@page import="bean.portDTO"%>
<%@page import="bean.PortfolioVo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>portView</title>
<!-- <link rel='stylesheet' href='port.css'> -->
<script src='port.js'></script>
<style>
div{width:400px; height:700px; display: inline-block;}
#right{background:#009900;}
#left{background:#00930s;}
</style>

</head>
<body>

<jsp:useBean id="vo" class="bean.PortfolioVo"/>
<jsp:setProperty property="*" name="vo"/>
<%	
	
	portDTO dto = new portDTO();
	dto.setVo(vo);	
	PortfolioVo v = dto.selectOne1();
%>
<div>
<br/>
<h1>[<%=v.getCate()%>]<%=v.getSubject() %></h1><br/>

<%if(v.getPhoto()==null){%>
<%}else{%>


 <div id="left"><img src='../thumb/<%=v.getThumb()%>'></div>
<%}%>
<div id="right"><%=v.getContent()%><p/>
작성자 : <%=v.getWriter()%><br/>

작성날짜 : <%=v.getWdate()%><br/></div>

<input type='button' value='삭제' id='btnDelete'>
<input type='button' value='수정' id='btnModify'>
<input type='button' value='닫기' id='btnList'>


<form id='portFrm' method="post">
	<input type='hidden' name='rno' value='<%=v.getRno()%>'>
	<input type='hidden' name='rno2' value='<%=vo.getRno()%>'>
	<input type='hidden' name='nowPage' value='<%=vo.getNowPage()%>'>
	<input type='hidden' name='find' value='<%=vo.getFind()%>'>
</form>


</div>

<script>portViewInit();</script>
</body>
</html>